package com.zgjkhis.modules.member.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author yzq
 * @Description 积分规则
 * @Date 2021/9/3 9:54
 * @Param
 * @return
 **/
@Data
@TableName("his_member_integral_rule")
public class IntegralRule implements Serializable {
    @TableId
    private Long id;
    @ApiModelProperty(value = "会员id")
    private Long memberId;
    @ApiModelProperty(value = "积分规则名称")
    private String integralName;
    @ApiModelProperty(value = "检验积分")
    private Integer inspectionIntegral;
    @ApiModelProperty(value = "检查积分")
    private Integer checkIntegral;
    @ApiModelProperty(value = "治疗医嘱积分")
    private Integer treatmentOrderIntegral;
    @ApiModelProperty(value = "处方医嘱积分")
    private Integer prescriptionOrderIntegral;
    @ApiModelProperty(value = "诊疗积分")
    private Integer diagnosisTreatmentIntegral;
    @ApiModelProperty(value = "材料费积分")
    private Integer materialCostIntegral;
    @ApiModelProperty(value = "其他费用积分")
    private Integer otherExpensesIntegral;
    @ApiModelProperty(value = "药房id")
    private String pharmacyId;
    @ApiModelProperty(value = "状态：0：生效，1：无效")
    private Integer status;
    /** 创建时间 */
    @TableField(fill= FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

}
